package com.teach.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.teach.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {
    User getByAccountAndRole(@Param("account") String account, @Param("roleId") Long roleId);

    List<User> getStudentsByClass(Long classId);

    List<User> getStudents();

    List<User> getTeachers();
}
